<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/30
 * Time: 10:36
 */

namespace app\core;

class PersonalMsg extends Student
{



    public function __construct($name,$age,$gender)
    {
//        echo '开始创建个人信息<br />';
//        $this->sName = $name;
//        $this->age=$age;
//        $this->gender=$gender;
        parent::__construct($name,$age,$gender);
    }

    public function PersonalMsg()
    {

        echo $this->age.'<br />';
//        parent::PersonalMsg(); // TODO: Change the autogenerated stub
        echo '开始创建个人信息：我是'.$this->sName.'今年'.$this->age.'岁'.',学号为'.$this->stuId;
    }
    public function __destruct()
    {
//        parent::__destruct(); // TODO: Change the autogenerated stub
        echo '个人信息创建结束<br />';
    }
}